Sponsored Content
Top Forums Programming which signal will flush the file buffer in C/C++ Post 302470790 by jackliang on Thursday 11th of November 2010 05:47:52 AM
Old 11-11-2010
Quote:
Originally Posted by JohnGraham
That's an unusual question... why?

There is no signal to specifically flush all buffers, unless (i) a particular application includes a facility for specifically doing that or (ii) you don't mind terminating the program, in which case any signal that causes normal termination will flush buffers before exiting. See "man 7 signal".
en, I mean flush the buffer and then terminate the process.
sometime, some log info will miss if sending a -TERM signal.
 

9 More Discussions You Might Find Interesting

1. HP-UX

lp print flush

Dear frnds, i just migrated to hp_ux11i from digital unix, from my new system some printers not printing next day, what i mean is, in lpstat it shows printer is enabled but printing not happening. for that what i do u know, i just disable the lp and enable it again. then it would print. is there... (0 Replies)
Discussion started by: jestinabel
0 Replies

2. Filesystems, Disks and Memory

hdparm + HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl

Hi All, Am finding performance of my SD card using hdparm. hdparm -tT /dev/BlockDev0 /dev/BlockDev0: Timing cached reads: 1118 MB in 2.00 seconds = 558.61 MB/sec HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device Timing buffered disk reads: 14... (0 Replies)
Discussion started by: amio
0 Replies

3. Programming

Store file into a buffer to send it through a socket

Hello, I'm doing a very simple program which reads a file and sends whatever is in the file through a socket. Like the program "file2cable". Let's say i have a file containing the following, which is a hex dump of an ARP request frame: ff ff ff ff ff ff 00 1b 24 79 5a 73 08 06 00 01 08... (5 Replies)
Discussion started by: semash!
5 Replies

4. Shell Programming and Scripting

flush the mail queue

Hi Guys, My mail queue is showing a mail. I want to flush the queue. Can you let me know how to flush the mail queue. Regards, Magesh (12 Replies)
Discussion started by: mac4rfree
12 Replies

5. Linux

sed couldn't flush stdout no space left on device

I am running Oracle Linux enterprise server 5.0. I just installed JDE 9.0 and after I started Webserver my root directory is 100% full. Can some one help me flush stdout. I am new to linux. Sam (5 Replies)
Discussion started by: s1a2m3
5 Replies

6. Programming

Why must flush all line-buffered output streams?

Hi, Mentioned in Stevens & Rago "Advanced Programming in the UNIX" I don't understand why must flush all line-buffered output streams when (a)an unbuffered or (b)a line-buffered stream require data from kernel? (2 Replies)
Discussion started by: Edward114
2 Replies

7. UNIX for Dummies Questions & Answers

How to check the buffer size of a file?

I have a c program and I want to know what command to use to display the current buffer size of the file using Terminal in Unix? (0 Replies)
Discussion started by: Izzy123
0 Replies

8. Emergency UNIX and Linux Support

DNS flush is not working

I have a Linux machine and it seems DNS cache is not getting clear on it. It is still showing old values, even after changing in DNS server by Network team. I did /etc/init.d/nscd restart But still it is showing old values on this server. On my rest of servers in environment, nslookup is showing... (7 Replies)
Discussion started by: solaris_1977
7 Replies

9. Shell Programming and Scripting

Command to flush specific domain in SunOS 5 DNS

Hello to all, May you help saying me how to flush a specific domain in Linux SunOS5 I know the command rndc is to flush DNS cache, but I would like to know: 1- How to do a flush only on specific domain 2- How to see the content of DNS Resolver cache (similar to info given by IPCONFIG... (2 Replies)
Discussion started by: Ophiuchus
2 Replies
tapset::signal(3stap)													     tapset::signal(3stap)

NAME
tapset::signal - systemtap signal tapset DESCRIPTION
This family of probe points is used to probe signal activities. Since there are so many signals sent to processes at any given point, it is advisable to filter the information according to the requirements. For example, filter only for a particular signal (if sig==2) or for a particular process (if pid_name==stap). signal.send Signal being sent to a process See probe::signal.send(3stap) for details. signal.send.return Signal being sent to a process completed (deprecated in SystemTap 2.1) See probe::signal.send.return(3stap) for details. signal.checkperm Check being performed on a sent signal See probe::signal.checkperm(3stap) for details. signal.checkperm.return Check performed on a sent signal completed See probe::signal.checkperm.return(3stap) for details. signal.wakeup Sleeping process being wakened for signal See probe::signal.wakeup(3stap) for details. signal.check_ignored Checking to see signal is ignored See probe::signal.check_ignored(3stap) for details. signal.check_ignored.return Check to see signal is ignored completed See probe::signal.check_ignored.return(3stap) for details. signal.force_segv Forcing send of SIGSEGV See probe::signal.force_segv(3stap) for details. signal.force_segv.return Forcing send of SIGSEGV complete See probe::signal.force_segv.return(3stap) for details. signal.syskill Sending kill signal to a process See probe::signal.syskill(3stap) for details. signal.syskill.return Sending kill signal completed See probe::signal.syskill.return(3stap) for details. signal.sys_tkill Sending a kill signal to a thread See probe::signal.sys_tkill(3stap) for details. signal.systkill.return Sending kill signal to a thread completed See probe::signal.systkill.return(3stap) for details. signal.sys_tgkill Sending kill signal to a thread group See probe::signal.sys_tgkill(3stap) for details. signal.sys_tgkill.return Sending kill signal to a thread group completed See probe::signal.sys_tgkill.return(3stap) for details. signal.send_sig_queue Queuing a signal to a process See probe::signal.send_sig_queue(3stap) for details. signal.send_sig_queue.return Queuing a signal to a process completed See probe::signal.send_sig_queue.return(3stap) for details. signal.pending Examining pending signal See probe::signal.pending(3stap) for details. signal.pending.return Examination of pending signal completed See probe::signal.pending.return(3stap) for details. signal.handle Signal handler being invoked See probe::signal.handle(3stap) for details. signal.handle.return Signal handler invocation completed See probe::signal.handle.return(3stap) for details. signal.do_action Examining or changing a signal action See probe::signal.do_action(3stap) for details. signal.do_action.return Examining or changing a signal action completed See probe::signal.do_action.return(3stap) for details. signal.procmask Examining or changing blocked signals See probe::signal.procmask(3stap) for details. signal.procmask.return Examining or changing blocked signals completed See probe::signal.procmask.return(3stap) for details. signal.flush Flushing all pending signals for a task See probe::signal.flush(3stap) for details. get_sa_flags Returns the numeric value of sa_flags See function::get_sa_flags(3stap) for details. get_sa_flags Returns the numeric value of sa_handler See function::get_sa_flags(3stap) for details. get_sa_flags Returns the string representation of a sigset See function::get_sa_flags(3stap) for details. is_sig_blocked Returns 1 if the signal is currently blocked, or 0 if it is not See function::is_sig_blocked(3stap) for details. sa_flags_str Returns the string representation of sa_flags See function::sa_flags_str(3stap) for details. sa_handler Returns the string representation of an sa_handler See function::sa_handler(3stap) for details. signal_str Returns the string representation of a signal number See function::signal_str(3stap) for details. SEE ALSO
function::get_sa_flags(3stap), function::get_sa_flags(3stap), function::get_sa_flags(3stap), function::is_sig_blocked(3stap), function::sa_flags_str(3stap), function::sa_handler(3stap), function::signal_str(3stap), probe::signal.send(3stap), probe::signal.send.return(3stap), probe::signal.checkperm(3stap), probe::signal.checkperm.return(3stap), probe::signal.wakeup(3stap), probe::signal.check_ignored(3stap), probe::signal.check_ignored.return(3stap), probe::signal.force_segv(3stap), probe::signal.force_segv.return(3stap), probe::signal.syskill(3stap), probe::signal.syskill.return(3stap), probe::signal.sys_tkill(3stap), probe::signal.systkill.return(3stap), probe::signal.sys_tgkill(3stap), probe::signal.sys_tgkill.return(3stap), probe::signal.send_sig_queue(3stap), probe::signal.send_sig_queue.return(3stap), probe::signal.pending(3stap), probe::signal.pending.return(3stap), probe::signal.handle(3stap), probe::signal.handle.return(3stap), probe::signal.do_action(3stap), probe::signal.do_action.return(3stap), probe::signal.procmask(3stap), probe::signal.procmask.return(3stap), probe::signal.flush(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::signal(3stap)
All times are GMT -4. The time now is 04:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy