kill i killall. roznice. dziwne roznice.

Krzysztof Drewicz hunter at raszyn.pl
Wed Mar 27 16:46:32 CET 2002


On Wed, 27 Mar 2002, Jakub Bogusz wrote:

> On Tue, Mar 26, 2002 at 07:20:28PM +0100, Krzysztof Drewicz wrote:
> > Jest tak:
> >  [hunter at dragon mksd]$ kill -SIGUSR1 5063
> >  [hunter at dragon mksd]$ ps aux | grep mks
> >  hunter    5063  0.0  0.0  1336  520 ?        S    21:18   0:00 ./mks_d
> >  [hunter at dragon mksd]$ killall -USR1 mks_d
> >  [hunter at dragon mksd]$ ps aux | grep mks
> >  [hunter at dragon mksd]$
>
> Znaczy z -USR1 wysyłają sygnały o innych numerach?

Tak. Wydaje się że killall wysyła KILL bo to co można w mks_d.c jest
zignorowane (
> A powyższy kill to bashowy builtin, czy /bin/kill?
w csh jest dokładnie tak samo:
[hunter at dragon]$ ./mks_d
[hunter at dragon]$ ps aux | grep mks
hunter   11726  0.0  0.0  1336  496 ?        S    16:10   0:00 ./mks_d
[hunter at dragon]$ kill -USR1 11726
[hunter at dragon]$ ps aux | grep mks
hunter   11726  0.0  0.0  1336  520 ?        S    16:10   0:00 ./mks_d
[hunter at dragon]$ killall -USR1 mks_d
[hunter at dragon]$ ps aux | grep mks
[hunter at dragon]$
[hunter at dragon]$ env | grep _
_=/bin/csh


-- 
Krzysztof Drewicz
hunter at pld.org.pl
Unfortunately, no one can be told what the Mac is like.
You have to see it for yourself.



More information about the pld-devel-pl mailing list