Check return value by system function.

In order to identify having been interrupted by Crl-C.