configure stdin/stdout signals