How do you make your UNIX crash ???

Steve Simmons scs at iti.org
Wed Mar 13 02:11:36 AEST 1991


In an article, tndsyd.oz.au!berny (Berny Goodheart) writes:
>I am interested in finding out known ways to make your version of UNIX
>crash.

In article <513 at bria> Michaoe Stefanik replies:

>main()
>{
>int fd;
>long now;

>	time(&now);
>	if ( (fd = open("/dev/kmem",O_RDWR)) == -1 )
>		return(1);
>	while ( write(fd,&now,sizeof(long)) == sizeof(long) )
>		;
>	close(fd);
>	return(0);
>}

Too verbose.  On a Sun, try 'b etc/dump' at the '>' prompt.

Do I need a smiley?
-- 
"Our informal mission is to improve the love life of operators worldwide."
  Peter Behrendt, president of Exabyte.  Quoted in Digital Review, Feb 4, 1991.



More information about the Comp.unix.internals mailing list