You will find attached what the app prints out on stdout and an strace
output.
The SESSION still get's blocked
amat@saphir:~/dev/uniqmail-engine/apevs/test/clamav$ sudo strace -fF -o
strace.log make run
=============================
Virus Scanner Test:
=============================
-----------------------------
Load config :
ape: debug : pid 15199: config: using configuration from
/etc/uniqmail/uniqmail.cnf [55/Config.cpp]
-----------------------------
Scan file with Clamav:
ape: debug : pid 15199: socket 3: created [37/Socket.cpp]
ape: debug : pid 15199: socket 3: connected to
/var/spool/clamav/clamav.socket [76/Socket.cpp]
ape: debug : pid 15199: socket 3: wrote to [99/Socket.cpp]
ape: debug : pid 15199: socket 3: wrote to [99/Socket.cpp]
make: *** wait: No child processes. Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
amat@saphir:~/dev/uniqmail-engine/apevs/test/clamav$ less strace.log
15199 munmap(0x40019000, 4096) = 0
15199 write(1, "-----------------------------\n", 30) = 30
15199 write(1, " Scan file with Clamav:\n", 24) = 24
15199 socket(PF_FILE, SOCK_STREAM, 0) = 3
15199 getpid() = 15199
15199 write(2, "ape: debug : pid 15199: socket "..., 59) = 59
15199 open(".log", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
15199 getpid() = 15199
15199 fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
15199 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
15199 write(4, "ape: debug : pid 15199: socket "..., 59) = 59
15199 connect(3, {sa_family=AF_FILE,
path="/var/spool/clamav/clamav.socket"}, 110) = 0
15199 getpid() = 15199
15199 write(2, "ape: debug : pid 15199: socket "..., 96) = 96
15199 getpid() = 15199
15199 write(4, "ape: debug : pid 15199: socket "..., 96) = 96
15199 write(3, "SESSION", 7) = 7
15199 getpid() = 15199
15199 write(2, "ape: debug : pid 15199: socket "..., 60) = 60
15199 getpid() = 15199
15199 write(4, "ape: debug : pid 15199: socket "..., 60) = 60
15199 write(3, "SCAN /home/amat/dev/uniqmail-eng"..., 77) = 77
15199 getpid() = 15199
15199 write(2, "ape: debug : pid 15199: socket "..., 60) = 60
15199 getpid() = 15199
15199 write(4, "ape: debug : pid 15199: socket "..., 60) = 60
15199 read(3, 0x80518a0, 512) = ? ERESTARTSYS (To be restarted)
15199 --- SIGINT (Interrupt) @ 0 (0) ---
15197 <... waitpid resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGINT}],
0) = 15199
15197 --- SIGINT (Interrupt) @ 0 (0) ---
15197 sigreturn() = ? (mask now [CHLD])
15197 rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fd0, [], SA_RESTORER,
0x40086678}, 8) = 0
15197 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
15197 getpid() = 15197
15197 kill(15197, SIGINT) = 0
15197 --- SIGINT (Interrupt) @ 0 (0) ---
15194 <... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGINT}],
0, NULL) = 15197
15194 --- SIGINT (Interrupt) @ 0 (0) ---
15194 --- SIGCHLD (Child exited) @ 0 (0) ---
15194 sigreturn() = ? (mask now [INT])
15194 rt_sigaction(SIGINT, {SIG_DFL}, {0x4016b7a0, [INT],
SA_RESTORER|SA_RESTART, 0x40056678}, 8) = 0
15194 stat64("run", 0xbfffde20) = -1 ENOENT (No such file or
directory)
15194 wait4(-1, 0xbfffde98, 0, NULL) = -1 ECHILD (No child processes)
15194 write(2, "make: *** ", 10) = 10
15194 write(2, "wait: No child processes", 24) = 24
15194 write(2, ". Stop.\n", 9) = 9
15194 write(2, "make: ", 6) = 6
15194 write(2, "*** Waiting for unfinished jobs."..., 35) = 35
15194 write(2, "\n", 1) = 1
15194 wait4(-1, 0xbfffdde8, 0, NULL) = -1 ECHILD (No child processes)
15194 write(2, "make: *** ", 10) = 10
15194 write(2, "wait: No child processes", 24) = 24
15194 write(2, ". Stop.\n", 9) = 9
15194 exit_group(2) = ?
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel