load average daemon for xenix redux
John F. Haugh II
jfh at rpp386.cactus.org
Sun Nov 26 19:40:17 AEST 1989
In article <17357 at rpp386.cactus.org> root at rpp386.cactus.org (John F. Haugh II) writes:
>this little program has been kicked around alt.sources a few
>times and i thought i'd take a whack at it.
and after a day of using it i realized i should have waited
until i'd used it longer before posting ...
>main(argc, argv)
> char **argv;
>{
> int i, n, n_run, n_disk;
> int mypid = getpid();
this initialization of mypid needs to be moved after the fork()
> signal (SIGHUP, SIG_IGN);
> if (fork ())
> exit (0);
>
> setpgrp ();
right here, like this
> mypid = getpid ();
this gave me a semi-permanent load average of 1.0 with nothing
running.
--
John F. Haugh II +-Things you didn't want to know:------
VoiceNet: (512) 832-8832 Data: -8835 | The real meaning of IBM is ...
InterNet: jfh at rpp386.cactus.org | ... I've Been to a Meeting.
UUCPNet: {texbell|bigtex}!rpp386!jfh +--<><--<><--<><--<><--<><--<><--Yea!--
More information about the Alt.sources
mailing list