cooldavey
2005.12.05
0 0
24
Dear NevemTeve, megcsináltam az strace-es műveletet -> ez lett a kimenete:
(elnézést a többiektől az elfoglalt négyzetméterekért)
execve("/usr/local/bin/pingel", ["/usr/local/bin/pingel"], [/* 12 vars */]) = 0 uname({sys="Linux", node="server.valami.hu", ...}) = 0 brk(0) = 0x80f03bc old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=15808, ...}) = 0 old_mmap(NULL, 15808, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libncurses.so.5", O_RDONLY) = 3 read(3, "177ELF111 3 3 1 220342"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=252592, ...}) = 0 old_mmap(NULL, 257868, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001c000 old_mmap(0x40052000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x35000) = 0x40052000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "177ELF111 3 3 1 p34 00"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0 old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005b000 old_mmap(0x4005d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x4005d000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "177ELF111 3 3 1 360^1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1244688, ...}) = 0 old_mmap(NULL, 1254852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005e000 old_mmap(0x40186000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x40186000 old_mmap(0x4018e000, 9668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4018e000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40191000 munmap(0x40018000, 15808) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3 close(3) = 0 brk(0) = 0x80f03bc brk(0) = 0x80f03bc brk(0x80f1000) = 0x80f1000 brk(0) = 0x80f1000 brk(0x80f2000) = 0x80f2000 getuid32() = 0 getgid32() = 0 geteuid32() = 0 getegid32() = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 time(NULL) = 1133391974 brk(0) = 0x80f2000 brk(0x80f3000) = 0x80f3000 brk(0) = 0x80f3000 brk(0x80f4000) = 0x80f4000 open("/etc/mtab", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=65, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, "/dev/hda1 / ext3 rw,errors=remou"..., 4096) = 65 close(3) = 0 munmap(0x40018000, 4096) = 0 open("/proc/meminfo", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, " total: used: free:"..., 4096) = 521 close(3) = 0 munmap(0x40018000, 4096) = 0 brk(0) = 0x80f4000 brk(0x80f5000) = 0x80f5000 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 uname({sys="Linux", node="server.valami.hu", ...}) = 0 stat64("/root", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 getpid() = 17665 getppid() = 17664 getpgrp() = 17664 rt_sigaction(SIGCHLD, {0x807ac80, [], SA_RESTORER, 0x400876f8}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 open("/usr/local/bin/pingel", O_RDONLY|O_LARGEFILE) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbffffbfc) = -1 ENOTTY (Inappropriate ioctl for device) _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "#!/bin/shnnhoszt1='192.168.0.15'"..., 80) = 80 _llseek(3, 0, [0], SEEK_SET) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 dup2(3, 255) = 255 close(3) = 0 fcntl64(255, F_SETFD, FD_CLOEXEC) = 0 fcntl64(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fstat64(255, {st_mode=S_IFREG|0755, st_size=278, ...}) = 0 _llseek(255, 0, [0], SEEK_CUR) = 0 brk(0) = 0x80f5000 brk(0x80f6000) = 0x80f6000 brk(0) = 0x80f6000 brk(0x80f7000) = 0x80f7000 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 read(255, "#!/bin/shnnhoszt1='192.168.0.15'"..., 278) = 278 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 pipe([3, 4]) = 0 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [RTMIN], 8) = 0 _llseek(255, -7, [271], SEEK_CUR) = 0 fork(Process 17666 attached ) = 17666 [pid 17665] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 [pid 17665] rt_sigaction(SIGCHLD, {0x807ac80, [], SA_RESTORER, 0x400876f8}, {0x807ac80, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17665] close(4) = 0 [pid 17665] read(3, <unfinished ...> [pid 17666] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 17666] getpid() = 17666 [pid 17666] close(255) = 0 [pid 17666] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 [pid 17666] rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17666] rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17666] rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17666] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17666] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0 [pid 17666] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807ac80, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17666] rt_sigaction(SIGCHLD, {0x807ac80, [], SA_RESTORER, 0x400876f8}, {SIG_DFL}, 8) = 0 [pid 17666] rt_sigaction(SIGINT, {0x808b3c0, [], SA_RESTORER, 0x400876f8}, {SIG_DFL}, 8) = 0 [pid 17666] dup2(4, 1) = 1 [pid 17666] close(4) = 0 [pid 17666] close(3) = 0 [pid 17666] rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 [pid 17666] rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 [pid 17666] rt_sigprocmask(SIG_BLOCK, [CHLD], [RTMIN], 8) = 0 [pid 17666] pipe([3, 4]) = 0 [pid 17666] rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD RTMIN], 8) = 0 [pid 17666] fork(Process 17667 attached ) = 17667 [pid 17667] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 17667] getpid() = 17667 [pid 17667] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 [pid 17667] rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17667] rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17667] rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17667] close(3) = 0 [pid 17667] dup2(4, 1) = 1 [pid 17667] close(4) = 0 [pid 17667] brk(0) = 0x80f7000 [pid 17667] brk(0x80f8000) = 0x80f8000 [pid 17667] stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 17667] stat64("/usr/local/sbin/ping", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/local/bin/ping", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/sbin/ping", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/bin/ping", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/sbin/ping", <unfinished ...> [pid 17666] rt_sigprocmask(SIG_SETMASK, [CHLD RTMIN], NULL, 8) = 0 [pid 17666] close(4) = 0 [pid 17666] close(4) = -1 EBADF (Bad file descriptor) [pid 17666] pipe([4, 5]) = 0 [pid 17666] rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD RTMIN], 8) = 0 [pid 17666] fork(Process 17668 attached ) = 17668 [pid 17668] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 17668] getpid() = 17668 [pid 17668] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 [pid 17668] rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17668] rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17668] rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17668] close(4) = 0 [pid 17668] dup2(3, 0) = 0 [pid 17668] close(3) = 0 [pid 17668] dup2(5, 1) = 1 [pid 17668] close(5) = 0 [pid 17668] stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 17668] stat64("/usr/local/sbin/grep", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17668] stat64("/usr/local/bin/grep", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17668] stat64("/usr/sbin/grep", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17668] stat64("/usr/bin/grep", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17668] stat64("/sbin/grep", <unfinished ...> [pid 17666] rt_sigprocmask(SIG_SETMASK, [CHLD RTMIN], NULL, 8) = 0 [pid 17666] close(3) = 0 [pid 17666] close(5) = 0 [pid 17666] close(3) = -1 EBADF (Bad file descriptor) [pid 17666] close(5) = -1 EBADF (Bad file descriptor) [pid 17666] rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD RTMIN], 8) = 0 [pid 17666] fork(Process 17669 attached ) = 17669 [pid 17666] rt_sigprocmask(SIG_SETMASK, [CHLD RTMIN], NULL, 8) = 0 [pid 17666] close(4) = 0 [pid 17666] rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD RTMIN], 8) = 0 [pid 17666] rt_sigprocmask(SIG_SETMASK, [CHLD RTMIN], NULL, 8) = 0 [pid 17666] rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD RTMIN], 8) = 0 [pid 17666] rt_sigaction(SIGINT, {0x8079bd0, [], SA_RESTORER, 0x400876f8}, {0x808b3c0, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17666] waitpid(-1, Process 17666 suspended <unfinished ...> [pid 17669] --- SIGSTOP (Stopped (signal)) @ 0 (0) --- [pid 17669] getpid() = 17669 [pid 17669] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 [pid 17669] rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17669] rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17669] rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17669] dup2(4, 0) = 0 [pid 17669] close(4) = 0 [pid 17669] stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 17669] stat64("/usr/local/sbin/wc", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17669] stat64("/usr/local/bin/wc", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17669] stat64("/usr/sbin/wc", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17669] stat64("/usr/bin/wc", {st_mode=S_IFREG|0755, st_size=18828, ...}) = 0 [pid 17669] stat64("/usr/bin/wc", {st_mode=S_IFREG|0755, st_size=18828, ...}) = 0 [pid 17669] brk(0) = 0x80f7000 [pid 17669] brk(0x80f8000) = 0x80f8000 [pid 17669] rt_sigaction(SIGINT, {SIG_DFL}, {0x808b3c0, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17669] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17669] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807ac80, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17669] execve("/usr/bin/wc", ["wc", "-l"], [/* 11 vars */]) = 0 [pid 17669] uname({sys="Linux", node="server.valami.hu", ...}) = 0 [pid 17669] brk(0) = 0x804d66c [pid 17669] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 [pid 17669] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17669] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17669] open("/etc/ld.so.cache", O_RDONLY) = 3 [pid 17669] fstat64(3, {st_mode=S_IFREG|0644, st_size=15808, ...}) = 0 [pid 17669] old_mmap(NULL, 15808, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 [pid 17669] close(3) = 0 [pid 17669] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17669] open("/lib/libc.so.6", O_RDONLY) = 3 [pid 17669] read(3, "177ELF111 3 3 1 360^1"..., 512) = 512 [pid 17669] fstat64(3, {st_mode=S_IFREG|0755, st_size=1244688, ...}) = 0 [pid 17669] old_mmap(NULL, 1254852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001c000 [pid 17669] old_mmap(0x40144000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x40144000 [pid 17669] old_mmap(0x4014c000, 9668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014c000 [pid 17669] close(3) = 0 [pid 17669] munmap(0x40018000, 15808) = 0 [pid 17669] brk(0) = 0x804d66c [pid 17669] brk(0x806e66c) = 0x806e66c [pid 17669] brk(0) = 0x806e66c [pid 17669] brk(0x806f000) = 0x806f000 [pid 17669] read(0, <unfinished ...> [pid 17667] <... stat64 resumed> 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/bin/ping", {st_mode=S_IFREG|S_ISUID|0755, st_size=15832, ...}) = 0 [pid 17667] stat64("/bin/ping", {st_mode=S_IFREG|S_ISUID|0755, st_size=15832, ...}) = 0 [pid 17667] brk(0) = 0x80f8000 [pid 17667] brk(0x80f9000) = 0x80f9000 [pid 17667] rt_sigaction(SIGINT, {SIG_DFL}, {0x808b3c0, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17667] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17667] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807ac80, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17667] execve("/bin/ping", ["ping", "-c", "3", "192.168.0.15"], [/* 11 vars */] <unfinished ...> [pid 17668] <... stat64 resumed> 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17668] stat64("/bin/grep", {st_mode=S_IFREG|0755, st_size=75692, ...}) = 0 [pid 17668] stat64("/bin/grep", {st_mode=S_IFREG|0755, st_size=75692, ...}) = 0 [pid 17668] brk(0) = 0x80f7000 [pid 17668] brk(0x80f8000) = 0x80f8000 [pid 17668] rt_sigaction(SIGINT, {SIG_DFL}, {0x808b3c0, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17668] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 17668] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807ac80, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17668] execve("/bin/grep", ["grep", "Unreachable"], [/* 11 vars */]) = 0 [pid 17668] uname({sys="Linux", node="server.valami.hu", ...}) = 0 [pid 17668] brk(0) = 0x805ac7c [pid 17668] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 [pid 17668] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17668] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17668] open("/etc/ld.so.cache", O_RDONLY) = 3 [pid 17668] fstat64(3, {st_mode=S_IFREG|0644, st_size=15808, ...}) = 0 [pid 17668] old_mmap(NULL, 15808, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 [pid 17668] close(3) = 0 [pid 17668] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17668] open("/lib/libc.so.6", O_RDONLY) = 3 [pid 17668] read(3, "177ELF111 3 3 1 360^1"..., 512) = 512 [pid 17668] fstat64(3, {st_mode=S_IFREG|0755, st_size=1244688, ...}) = 0 [pid 17668] old_mmap(NULL, 1254852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001c000 [pid 17668] old_mmap(0x40144000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x40144000 [pid 17668] old_mmap(0x4014c000, 9668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014c000 [pid 17668] close(3) = 0 [pid 17668] munmap(0x40018000, 15808) = 0 [pid 17668] brk(0) = 0x805ac7c [pid 17668] brk(0x807bc7c) = 0x807bc7c [pid 17668] brk(0) = 0x807bc7c [pid 17668] brk(0x807c000) = 0x807c000 [pid 17668] fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 [pid 17668] read(0, <unfinished ...> [pid 17667] <... execve resumed> ) = 0 [pid 17667] uname({sys="Linux", node="server.valami.hu", ...}) = 0 [pid 17667] brk(0) = 0x805cb5c [pid 17667] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 [pid 17667] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17667] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] open("/etc/ld.so.cache", O_RDONLY) = 3 [pid 17667] fstat64(3, {st_mode=S_IFREG|0644, st_size=15808, ...}) = 0 [pid 17667] old_mmap(NULL, 15808, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 [pid 17667] close(3) = 0 [pid 17667] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/libc.so.6", O_RDONLY) = 3 [pid 17667] read(3, "177ELF111 3 3 1 360^1"..., 512) = 512 [pid 17667] fstat64(3, {st_mode=S_IFREG|0755, st_size=1244688, ...}) = 0 [pid 17667] old_mmap(NULL, 1254852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001c000 [pid 17667] old_mmap(0x40144000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x40144000 [pid 17667] old_mmap(0x4014c000, 9668, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014c000 [pid 17667] close(3) = 0 [pid 17667] munmap(0x40018000, 15808) = 0 [pid 17667] getuid32() = 0 [pid 17667] brk(0) = 0x805cb5c [pid 17667] brk(0x807db5c) = 0x807db5c [pid 17667] brk(0) = 0x807db5c [pid 17667] brk(0x807e000) = 0x807e000 [pid 17667] open("/etc/nsswitch.conf", O_RDONLY) = 3 [pid 17667] fstat64(3, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0 [pid 17667] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 [pid 17667] read(3, "# /etc/nsswitch.confn#n# Example"..., 4096) = 465 [pid 17667] read(3, "", 4096) = 0 [pid 17667] close(3) = 0 [pid 17667] munmap(0x40018000, 4096) = 0 [pid 17667] open("/etc/ld.so.cache", O_RDONLY) = 3 [pid 17667] fstat64(3, {st_mode=S_IFREG|0644, st_size=15808, ...}) = 0 [pid 17667] old_mmap(NULL, 15808, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 [pid 17667] close(3) = 0 [pid 17667] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/i686/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls/i686/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/i686/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls/i686/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/i686/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls/i686/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls/i686", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 17667] open("/lib/i686/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/i686/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/i686/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/i686/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/i686/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/i686/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/i686", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 17667] open("/usr/lib/tls/i686/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls/i686/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/tls/i686/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls/i686/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/tls/i686/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls/i686/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls/i686", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/tls/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/tls/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/tls/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/tls", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/i686/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/i686/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/i686/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/i686/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/i686/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/i686/cmov", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 17667] open("/usr/lib/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 17667] open("/usr/lib/mmx/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/mmx/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/mmx/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/mmx", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/cmov/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib/cmov", 0xbffff600) = -1 ENOENT (No such file or directory) [pid 17667] open("/usr/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17667] stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0 [pid 17667] munmap(0x40018000, 15808) = 0 [pid 17667] open("/etc/ld.so.cache", O_RDONLY) = 3 [pid 17667] fstat64(3, {st_mode=S_IFREG|0644, st_size=15808, ...}) = 0 [pid 17667] old_mmap(NULL, 15808, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 [pid 17667] close(3) = 0 [pid 17667] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 17667] open("/lib/libnss_files.so.2", O_RDONLY) = 3 [pid 17667] read(3, "177ELF111 3 3 1 22035"..., 512) = 512 [pid 17667] fstat64(3, {st_mode=S_IFREG|0644, st_size=34520, ...}) = 0 [pid 17667] old_mmap(NULL, 33720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4014f000 [pid 17667] old_mmap(0x40157000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8000) = 0x40157000 [pid 17667] close(3) = 0 [pid 17667] munmap(0x40018000, 15808) = 0 [pid 17667] open("/etc/protocols", O_RDONLY) = 3 [pid 17667] fcntl64(3, F_GETFD) = 0 [pid 17667] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 [pid 17667] fstat64(3, {st_mode=S_IFREG|0644, st_size=2478, ...}) = 0 [pid 17667] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 [pid 17667] read(3, "# Internet (IP) protocolsn#n# Up"..., 4096) = 2478 [pid 17667] close(3) = 0 [pid 17667] munmap(0x40018000, 4096) = 0 [pid 17667] socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3 [pid 17667] getuid32() = 0 [pid 17667] setuid32(0) = 0 [pid 17667] getpid() = 17667 [pid 17667] setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0 [pid 17667] setsockopt(3, SOL_SOCKET, SO_RCVBUF, [49152], 4) = 0 [pid 17667] fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 [pid 17667] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 [pid 17667] rt_sigaction(SIGINT, {0x804a0d0, [INT], SA_RESTORER|SA_RESTART, 0x400456f8}, {SIG_DFL}, 8) = 0 [pid 17667] rt_sigaction(SIGALRM, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, {SIG_DFL}, 8) = 0 [pid 17667] gettimeofday({1133391974, 641984}, NULL) = 0 [pid 17667] sendto(3, "10 3113713E C2160f t31330010tnvfr16"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.0.15")}, 16) = 64 [pid 17667] rt_sigaction(SIGALRM, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, 8) = 0 [pid 17667] alarm(1) = 0 [pid 17667] recvfrom(3, 0x805d790, 192, 0, 0xbffffd60, 0xbffffd30) = ? ERESTARTSYS (To be restarted) [pid 17667] --- SIGALRM (Alarm clock) @ 0 (0) --- [pid 17667] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1247855416 [pid 17667] gettimeofday({1133391975, 636686}, NULL) = 0 [pid 17667] sendto(3, "10 3352523E1 C2160g t2671610tnvfr16"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.0.15")}, 16) = 64 [pid 17667] rt_sigaction(SIGALRM, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, 8) = 0 [pid 17667] alarm(1) = 0 [pid 17667] sigreturn() = ? (mask now [RTMIN]) [pid 17667] recvfrom(3, 0x805d790, 192, 0, 0xbffffd60, 0xbffffd30) = ? ERESTARTSYS (To be restarted) [pid 17667] --- SIGALRM (Alarm clock) @ 0 (0) --- [pid 17667] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1247855516 [pid 17667] gettimeofday({1133391976, 636638}, NULL) = 0 [pid 17667] sendto(3, "10 3343313E2 C2160h t26633610tnvfr16"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.0.15")}, 16) = 64 [pid 17667] rt_sigaction(SIGALRM, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, 8) = 0 [pid 17667] rt_sigaction(SIGALRM, {0x804a0d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, {0x80497d0, [ALRM], SA_RESTORER|SA_RESTART, 0x400456f8}, 8) = 0 [pid 17667] alarm(10) = 0 [pid 17667] sigreturn() = ? (mask now [RTMIN]) [pid 17667] recvfrom(3, 0x805d790, 192, 0, 0xbffffd60, 0xbffffd30) = ? ERESTARTSYS (To be restarted) [pid 17667] --- SIGALRM (Alarm clock) @ 0 (0) --- [pid 17667] rt_sigaction(SIGINT, {SIG_IGN}, {0x804a0d0, [INT], SA_RESTORER|SA_RESTART, 0x400456f8}, 8) = 0 [pid 17667] write(1, "PING 192.168.0.15 (192.168.0.15)"..., 49) = 49 [pid 17667] write(1, "--- 192.168.0.15 ping statistics"..., 97) = 97 [pid 17667] munmap(0x40018000, 4096) = 0 [pid 17667] exit_group(1) = ? Process 17666 resumed Process 17667 detached [pid 17668] <... read resumed> "PING 192.168.0.15 (192.168.0.15)"..., 32768) = 146 [pid 17668] read(0, "", 32768) = 0 [pid 17668] close(1) = 0 [pid 17668] exit_group(1) = ? Process 17668 detached [pid 17669] <... read resumed> "", 16384) = 0 [pid 17669] fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 [pid 17669] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 [pid 17669] brk(0) = 0x806f000 [pid 17669] brk(0) = 0x806f000 [pid 17669] brk(0x806e000) = 0x806e000 [pid 17669] brk(0) = 0x806e000 [pid 17669] close(0) = 0 [pid 17669] write(1, "0n", 2) = 2 [pid 17665] <... read resumed> "0n", 128) = 2 [pid 17665] read(3, <unfinished ...> [pid 17669] close(1) = 0 [pid 17669] munmap(0x40018000, 4096) = 0 [pid 17669] exit_group(0) = ? Process 17669 detached [pid 17666] <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 17669 [pid 17666] waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 17668 [pid 17666] waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 17667 [pid 17666] rt_sigprocmask(SIG_SETMASK, [CHLD RTMIN], NULL, 8) = 0 [pid 17666] rt_sigaction(SIGINT, {0x808b3c0, [], SA_RESTORER, 0x400876f8}, {0x8079bd0, [], SA_RESTORER, 0x400876f8}, 8) = 0 [pid 17666] close(4) = -1 EBADF (Bad file descriptor) [pid 17666] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 [pid 17666] --- SIGCHLD (Child exited) @ 0 (0) --- [pid 17666] waitpid(-1, 0xbffff57c, WNOHANG) = -1 ECHILD (No child processes) [pid 17666] sigreturn() = ? (mask now [RTMIN]) [pid 17666] exit_group(0) = ? Process 17666 detached <... read resumed> 0xbffffa00, 128) = ? ERESTARTSYS (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 17666 waitpid(-1, 0xbffff6a4, WNOHANG) = -1 ECHILD (No child processes) sigreturn() = ? (mask now [RTMIN]) read(3, "", 128) = 0 close(3) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [RTMIN], 8) = 0 rt_sigaction(SIGINT, {0x8079bd0, [], SA_RESTORER, 0x400876f8}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, {0x8079bd0, [], SA_RESTORER, 0x400876f8}, 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3 fcntl64(1, F_GETFD) = 0 fcntl64(1, F_DUPFD, 10) = 10 fcntl64(1, F_GETFD) = 0 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 1) = 1 close(3) = 0 write(1, "okn", 3) = 3 dup2(10, 1) = 1 fcntl64(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0 read(255, "exit 0n", 278) = 7 rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0 exit_group(0) = ?
Előzmény: NevemTeve (7)
kagura
2005.12.01
0 0
17
Nem titok, es raadasul (termeszetesen) opensource GPL licences. Az amavis-ng -nek egy altalam atirt es kibovitett valtozatarol van szo. ha kuldesz egy mailcimet pl a daddy_bacsi kukac frimel hu -ra, akkor szivesen elkuldom az egeszet. Az eredeti amavis-ng-hez kepest annyi a valtozas, hogy irtam hozza egy spamfilter modult, mert az eredetiben nem volt ilyen lehetoseg (az amavisd-new szurt spamet, de az nem felelet meg az igenyeinknek.) Ez a spamszuro a Spamassassin-t hasznalja, nagyon rugalmasan allithatora irtam, meg, minden felhasznalonak egyedi beallitasa vannak, amit egy webes feluleten keresztul lehet allitgatni, es a spamekrol adatbazis bejegyzes keszul, amit szinten a webes feluleten kersztul lehet lekerdezni. Ha egy levelre megis szukseg lenne, akkor a kezelofeluletrol el lehet kuldeni a felhasznalonak egy zipelt csatolmanykent. Az amavis levlistara irtam egy levelet, hogy ha erdekel valakit, akkor szivesen odaadom a forrast, de senkinek sem kellett. Ennek ellenere nalunk nagyon jol mukodik, es csak most latjak, hogy mennyire hianyzik nekik, ugyanis nem megy.. -( Najo egy kicsit dicsekvos lett a hozzaszolasom. Szoval kuldj emilcimet, es elkuldom a forrast. Kagura
Előzmény: NevemTeve (13)
kagura
2005.12.01
0 0
8
elnezest, hogy ide irom a banatomat, de csak regen halott perl topikokat talaltam. Talan van itt valaki, aki segiteni tud tanaccsal. A kovetkezo a helyzet: adott egy perl -ben irt daemon, ami kapcsolatokat fogad a kulvilagbol. Minden kapcsolatot egy-egy forkolt folyamat szolgal ki. Szukseges ezen egyideju folyamatok szamanak a korlatozasa. Az alabbiakban megadott megoldas woody alatt perl 5.6. verzioval jol mukodott. de sajna egy upgrade utan a sarge es a perl 5.8.4 -el mar nem jo. A modszer az, hogy felallitok egy signal kezelot, ami elkapja azt a szignalt, amit a gyermek process a lefutasa utan kuld a szulo folyamatnak. ebben a signal kezeloben csokkentem a futo folyamatok szamlalojat, amit minden uj folyamattal megnovelek (ha eleri a hatart, akkkor nem nyit uj folyamatot, hanem hibauzenet kuld). Az uj perl-el (5.8.4) mindez nem jo, mert amikor a gyermek folyamat vegez, akkor kuldi a szignalt, amit a szignalkezelo elkap, elvegzi a dolgat, es ezek utan A daemon is kilep!!!! mindenfele jel nelkul. nincsen hibauzenet, semmit sem latni. ugy mintha a daemon futasa rendben vegetert volna. felturtam az internetet, de mindehol ugyanazt talaltam, semmifele utalast az ilyen jelensegre. Ha van valakinek hasznalhato otlete, akkor kerm segitsen elindulni valamerre. Koszonom Kagura ime a kodreszletek: a signal kezelo (egyenesen a perlipc-bol :-)): sub child_count { my $pidd; while (($pidd = waitpid(-1, &WNOHANG)) > 0) { $children--; } $SIG{CHLD}=&child_count; } a kodreszlet a daemon -bol: $children = 0; . . if($children < $max_child){ if (!defined ($pid = fork)) { . . #daemon waiting for the next connection request next; } } else { print STDERR "process limit exceeded: $children > $max_child"); . . #daemon waiting for the next connection request next; } if ($pid) { # We are the parent #$SIG{CHLD} = 'IGNORE'; $SIG{CHLD} = &child_count; . . } else { # We are the child # here process the connection $SIG{CHLD} = 'IGNORE'; . . }
Ha kedveled azért, ha nem azért nyomj egy lájkot a Fórumért!