Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Posix. Any way to cancel tcdrain() ? Post 302960294 by jim mcnamara on Friday 13th of November 2015 07:55:04 AM
Old 11-13-2015
Can you not call pthread_kill on the "tcdrain thread"?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to cancel all printjobs at once?

Hi unix-friends, I've got an RS6000 with Unix 4.3 as OS. I'm writing a script that i want to use for cancelling all print jobs at once. Does anyone have any good idea's, hints, or tips? Hope to hear from you, Erik (3 Replies)
Discussion started by: Erik Rooijmans
3 Replies

2. UNIX for Advanced & Expert Users

cancel the massage

Hi all In Aix system Someone know i want to cancel the massage. if some user print something and user root deleting the job i got brodcast message " message from queueing system job number XXX has been deleteing from queue. <EOT> " I use the cancel command (1 Reply)
Discussion started by: goldfelda
1 Replies

3. UNIX for Dummies Questions & Answers

Cancel QCompile

I need help, please!!!!!!!! I have accidentally selected to compile all my programs, which will probably take forever!! How can I cancel the compiling of the programs. I see in qstatus the huge list of programs waiting to be compiled. Thanks! :eek: (1 Reply)
Discussion started by: itldp
1 Replies

4. Solaris

Cron Job... How to cancel it.

Hello, I am sort of new to cron jobs, I have a cron job running everyday that no longer needs to. How do I cancel it? (4 Replies)
Discussion started by: komputersman
4 Replies

5. Post Here to Contact Site Administrators and Moderators

cancel account

id like to cancel my account please. thanks (5 Replies)
Discussion started by: samb057
5 Replies

6. Post Here to Contact Site Administrators and Moderators

Cancel Account

I accidentally typed a wrong user name... pls delete my account so that i can create a new one.. Thanks (4 Replies)
Discussion started by: Pat_Martin
4 Replies

7. UNIX for Dummies Questions & Answers

can't cancel nohup job

Yesterday I started a nohup job called assoc.sh. It has not finished running, but I have realised a problem with my script, so wish to cancel it, modify and restart it. However, I cannot find the PID, so can't cancel it. I have searched the ps list and nothing resembles my job - how can I cancel... (13 Replies)
Discussion started by: polly_falconer
13 Replies

8. HP-UX

i want to cancel printing job

hi every body i used " lpstat -o" to show the printer jobs and i already canceld it by "cancel -e -f jobid" but the problem i found when used " lpstat -o" again it said that job in progress i think because it in the buffer but i don't know how to clear the printer. (9 Replies)
Discussion started by: maxim42
9 Replies

9. Shell Programming and Scripting

Cancel down 2 integers

Wonderful evening to all of you! My problem has to possible starting points. Well, not really, but getting to either one is no problem at all. So i got either a string in the format of "1920x1080" or simply the integers X = 1920 and Y = 1080. When I am done, I would like to have an output... (5 Replies)
Discussion started by: jakunar
5 Replies

10. UNIX for Dummies Questions & Answers

Cannot cancel a print

Hi Everyone, I am trying to cancel a print. I am logged on as the user of the print and when I use the command 'cancel print_job' I get the message 'print_job: not authorized' I have cancelled other prints in the queue, but this particular job in the queue cannot delete. I even logged on as... (5 Replies)
Discussion started by: Scarlet
5 Replies
TCSENDBREAK(3)						   BSD Library Functions Manual 					    TCSENDBREAK(3)

NAME
tcdrain, tcflow, tcflush, tcsendbreak -- line control functions LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <termios.h> int tcdrain(int fildes); int tcflow(int fildes, int action); int tcflush(int fildes, int action); int tcsendbreak(int fildes, int duration); DESCRIPTION
The tcdrain() function waits until all output written to the terminal referenced by fildes has been transmitted to the terminal. The tcflow() function suspends transmission of data to, or the reception of data from, the terminal referenced by fildes, depending on the value of action. The value of action must be one of the following: TCOOFF Suspend output. TCOON Restart suspended output. TCIOFF Transmit a STOP character, which is intended to cause the terminal to stop transmitting data to the system. (See the description of IXOFF in the 'Input Modes' section of termios(4)). TCION Transmit a START character, which is intended to cause the terminal to start transmitting data to the system. (See the description of IXOFF in the 'Input Modes' section of termios(4)). The tcflush() function discards any data written to the terminal referenced by fildes which has not been transmitted to the terminal, or any data received from the terminal but not yet read, depending on the value of action. The value of action must be one of the following: TCIFLUSH Flush data received but not read. TCOFLUSH Flush data written but not transmitted. TCIOFLUSH Flush both data received but not read and data written but not transmitted. The tcsendbreak() function transmits a continuous stream of zero-valued bits for four-tenths of a second to the terminal referenced by fildes. The duration parameter is ignored in this implementation. RETURN VALUES
Upon successful completion, all of these functions return a value of zero. ERRORS
If any error occurs, a value of -1 is returned and the global variable errno is set to indicate the error, as follows: [EBADF] The fildes argument is not a valid file descriptor. [EINTR] A signal interrupted the tcdrain() function. [EINVAL] The action argument is not a proper value. [ENOTTY] The file associated with fildes is not a terminal. SEE ALSO
tcsetattr(3), termios(4) STANDARDS
The tcsendbreak(), tcdrain(), tcflush() and tcflow() functions are expected to be compliant with the IEEE Std 1003.1-1988 (``POSIX.1'') spec- ification. BSD
June 4, 1993 BSD
All times are GMT -4. The time now is 01:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy