Skip to contentSkip to conversation

axfer: check whether a terminal is referred for stdio

DISCUSSION GitHub pull_request - opened 1 participant 1 message Dec 5, 2018 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-utils pull request #5 was opened from takaswie:

A reference to a terminal for standard input/output brings some troubles. For capture transmission, it can bring some terminal control codes and it's possible to make the terminal in disorder. For playback transmission, it can bring endless loop to read data for detection of type of container.

This commit checks whether a terminal is referred for the standard input/output by a call isatty(3). When detecting a terminal, axfer run time prints message and goes to finish.

Request URL : https://github.com/alsa-project/alsa-utils/pull/5
Patch URL : https://github.com/alsa-project/alsa-utils/pull/5.patch
Repository URL: https://github.com/alsa-project/alsa-utils