Messages in this thread | | | Date | Tue, 23 Mar 1999 23:39:47 -0500 | From | Brian Gerst <> | Subject | Re: execl! |
| |
G Jalaja Devi wrote: > > Have a look at this piece of code. > The instructions prior to the execl() function is not getting executed. > When I give a getchar() after the printf statement then the "Tr -module" > is getting printed. > >From the manpage, what I had understood is that the execl function > replaces the current process image with the new process image. > But, Does it replaces the prior instructions also? or what is happening??
[snip]
Try adding \n to the printf statement. stdout won't be flushed until a newline is printed. getchar must also force a flush. This is a libc issue, not kernel.
--
Brian Gerst
- 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/
| |