Re: vfork() from userland

Kev (klmitch@MIT.EDU)
Mon, 01 Feb 1999 14:49:23 EST


> Here the parent suffers a violent SIGSEGV death:
>
> int i=0;
> if (!syscall(__NR_vfork)) {
> fprintf(stderr,"%d child %d\n",getpid(),++i);
> execlp("echo","echo","I love my parent",0);
> }
> fprintf(stderr,%d parent %d\n",getpid(),++i);

I assume you typoed when sending this message, as I'm pretty sure the
compiler would have choked on this fprintf()....

-- 
Kevin L. Mitchell <klmitch@mit.edu>
-------------------------  -. .---- --.. ..- -..-  --------------------------
http://web.mit.edu/klmitch/www/               (PGP keys availiable from here)
    RSA AE87D37D/1024:  DE EA 1E 99 3F 2B F9 23  A0 D8 05 E0 6F BA B9 D2
    DSS ED0DB34E/1024: D9BF 0E74 FDCB 43F5 C597  878F 9455 EC24 ED0D B34E
    DH  2A2C31D4/2048: 1A77 4BA5 9E32 14AE 87DA  9FEC 7106 FC62 2A2C 31D4

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/