lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.077 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site