Prints before execl is not visible in output

前端 未结 1 1280
渐次进展
渐次进展 2020-12-21 05:25
#include 
#include 
#include 
#include 
#include 

int main(void)
{
    pid_t Checksu         


        
相关标签:
1条回答
  • 2020-12-21 06:15

    Remember that output through printf (to stdout) is normally line buffered. That means the output-buffer gets flushed on newline. As you don't have a newline after the string you want to print, the output-buffer will not be flushed.

    Either add a newline last in the string, or manually flush the buffers with fflush.

    0 讨论(0)
提交回复
热议问题