Search Results

Search: Posts Made By: hurricane
Forum: Programming 11-16-2011
23,227
Posted By hurricane
SIGPIPE and EPIPE
When a write() writes on a broken pipe, with no readers, it generates a SIGPIPE signal and the process exits.

When the write() returns -1 and errno is EPIPE?
Do I have an handler for SIGPIPE, or...
Forum: Programming 02-12-2011
37,294
Posted By hurricane
The parameter you have to use is simply argv[1],...
The parameter you have to use is simply argv[1], not &(argv[1]) .

argv[1] is just a pointer, and so it can be a char* .
2,512
Posted By hurricane
Thank you for the reply! But if so, then...
Thank you for the reply!

But if so, then I've another question: does it make sense to block a signal, if the arrival of this signal aborts the system call anyway?
2,512
Posted By hurricane
Ignored signals & blocking system calls
If I explicity ignore a signal (for example, SIGALRM), and this signal is generated during a blocking system call (for example, a recvfrom() ), what happens to the system call?
Does it abort, or...
56,517
Posted By hurricane
This is the situation. I wrote a very simple...
This is the situation.

I wrote a very simple and small program that closes its standard output and redirects it on a file.

Another program (called "analyzer" in the previous post) does some...
56,517
Posted By hurricane
I-node and sessions
I have a program (written by me, for educational purposes) called "analyzer".

The program takes a parameter, a filename, and does some statistics on it (for example, word's number, line's number,...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy