Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Dan Morrill <morrildl@nycap.rr.com>
To: axp-list@redhat.com
Subject: fork() and 2.2.1
Date: Mon, 15 Feb 1999 23:47:38 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.04.9902152328510.474-100000@toshiba-179-24.nycap.rr.com> (raw)
In-Reply-To: <Pine.LNX.4.04.9902152243060.11190-100000@toshiba-53-90.nycap.rr.com>


<QUESTION TYPE="STUPID">
*sigh* I ruined my uptime.  (14 days 22 hours on 2.2.1.  Oh well. :)

I forkbombed my Alpha to see what would happen.

By "forkbomb" I mean:


#include <unistd.h>
#include <stdio.h>
int main( int argc, char** argv ) {
    int i = 0;
    while (fork())
	printf( "Hi! %d\n", i++ );
    return 0;
}


(Yes, I have too much free time.)

No problemo;  I just did a:

while true; do ps aux | grep -v grep | grep morrildl | awk '{ print $2; }' | \
xargs kill -KILL; done

...as root and morrildl went bye-bye.

Well, except for one last unkillable zombie process.  I was under the
impression that no process should be unkillable to SIGKILL.  Since this SIG is
intercepted by the OS and not the process, is this a bug in the kernel, or a
"feature" I don't know about?  Is this maybe an Alpha-specific thing? (I don't
recall ever seeing this happen on Intel.)
</QUESTION>

(I lost my uptime because I rebooted to get rid of this zombie process; even
though it wasn't burning any cycles, looking at unkillable zombie processes
in ps makes me nervous. :)


Dan Morrill
Computer Scientist, Physicist


       reply	other threads:[~1999-02-16  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.04.9902152243060.11190-100000@toshiba-53-90.nycap.rr.com>
1999-02-16  4:47 ` Dan Morrill [this message]
1999-02-16  4:58   ` fork() and 2.2.1 Ross A. Knepper
1999-02-16 15:59     ` Mark Conway Wirt
1999-02-18  6:21   ` flush cache? Bruce Ediger
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox