Sponsored Content
Top Forums UNIX for Dummies Questions & Answers System got restarted unexpectedly Post 302565444 by rdcwayx on Tuesday 18th of October 2011 01:00:16 AM
Old 10-18-2011
smartd problem

"SCSI error: <0 0 0 0> return code = 0x70000"

such the keywords "Device: /dev/sda, Bad IEC (SMART) mode page" in google, you will get more.
 

8 More Discussions You Might Find Interesting

1. AIX

Aix Server Restarted

Hi, I want to know how can we come to know who has system rebooted, I have given the command last but it showing the last user has login and logout after some time,but reboot command is showing after 10 mins,how can we trace that it is automatically rebooted or rebooted by some person, (2 Replies)
Discussion started by: manoj.solaris
2 Replies

2. Shell Programming and Scripting

tr command behaving unexpectedly

Im trying to execute the below command on our server to list files and replace the newline in the file list with spaces, but the character 'n' is getting replaced with a space, is there any environment variable that needs to be set in UNIX? sh -c 'ls -trx... (1 Reply)
Discussion started by: rameshrr3
1 Replies

3. Solaris

Solaris server restarted

Hi All, I Am facing a problem that Solaris blade server is getting restarted again again in the mean while. For some continuous time period its works fine but in mean while automatically get restarted. Checked with vendor they told there is no any H/W problem. Please help me out in to this. (2 Replies)
Discussion started by: sunray
2 Replies

4. UNIX for Dummies Questions & Answers

Machine shutdown unexpectedly

Hi One of our Linux box got shutdown unexpectedly . I have noticed that 4 out of 8 nic ports were not blinking . I m not sure where to search logs . Any help would be appreciated. Please find the var/log/message Is it a case of power failure as nothing specific is getting logged(Just a... (7 Replies)
Discussion started by: pinga123
7 Replies

5. UNIX for Advanced & Expert Users

problem with restarted I/O system calls

Greetings. Suppose I have a UNIX OS with automatic-restart (by default) of interrupted system calls, or I use sigaction() with SA_RESTART flag. If I am in the middle of a read(fd1, buf1, MAXSIZE) or a write(fd2, buf2, MAXSIZE), and I am interrupted by a signal, then the system will... (1 Reply)
Discussion started by: aigoia
1 Replies

6. UNIX for Dummies Questions & Answers

[Solved] when server restarted ?

Hi, we are in HP-UX MYSERVER B.11.31 U ia64. Is there any way to see when server restarted for the last time ? Thank you. (3 Replies)
Discussion started by: big123456
3 Replies

7. Red Hat

How to know which user has restarted or shutdown the redhat box?

hi guys! I like to know which user has rebooted or shutdown a redhat box ? the thing is wanted to know the exact user name who has done this action, ofcourse an admin privileged user only can do this. from a list of admin privileged user to find the exact one. i used to go with last... (4 Replies)
Discussion started by: redhatlbug
4 Replies

8. Shell Programming and Scripting

List out Process ids restarted today

Hi, I need to list out the processes which are started/restarted today in my Solaris box. If not possible need to convert the process uptime in minutes or seconds and compare it with a configurable value to list out those process ids for further processing in my scripting. Can any one guide... (7 Replies)
Discussion started by: ananan
7 Replies
RESTART_SYSCALL(2)					     Linux Programmer's Manual						RESTART_SYSCALL(2)

NAME
restart_syscall - restart a system call after interruption by a stop signal SYNOPSIS
int restart_syscall(void); Note: There is no glibc wrapper for this system call; see NOTES. DESCRIPTION
The restart_syscall() system call is used to restart certain system calls after a process that was stopped by a signal (e.g., SIGSTOP or SIGTSTP) is later resumed after receiving a SIGCONT signal. This system call is designed only for internal use by the kernel. restart_syscall() is used for restarting only those system calls that, when restarted, should adjust their time-related parameters--namely poll(2) (since Linux 2.6.24), nanosleep(2) (since Linux 2.6), clock_nanosleep(2) (since Linux 2.6), and futex(2), when employed with the FUTEX_WAIT (since Linux 2.6.22) and FUTEX_WAIT_BITSET (since Linux 2.6.31) operations. restart_syscall() restarts the interrupted system call with a time argument that is suitably adjusted to account for the time that has already elapsed (including the time where the process was stopped by a signal). Without the restart_syscall() mechanism, restarting these system calls would not correctly deduct the already elapsed time when the process continued execution. RETURN VALUE
The return value of restart_syscall() is the return value of whatever system call is being restarted. ERRORS
errno is set as per the errors for whatever system call is being restarted by restart_syscall(). VERSIONS
The restart_syscall() system call is present since Linux 2.6. CONFORMING TO
This system call is Linux-specific. NOTES
There is no glibc wrapper for this system call, because it is intended for use only by the kernel and should never be called by applica- tions. The kernel uses restart_syscall() to ensure that when a system call is restarted after a process has been stopped by a signal and then resumed by SIGCONT, then the time that the process spent in the stopped state is counted against the timeout interval specified in the original system call. In the case of system calls that take a timeout argument and automatically restart after a stop signal plus SIGCONT, but which do not have the restart_syscall() mechanism built in, then, after the process resumes execution, the time that the process spent in the stop state is not counted against the timeout value. Notable examples of system calls that suffer this problem are ppoll(2), select(2), and pselect(2). From user space, the operation of restart_syscall() is largely invisible: to the process that made the system call that is restarted, it appears as though that system call executed and returned in the usual fashion. SEE ALSO
sigaction(2), sigreturn(2), signal(7) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 RESTART_SYSCALL(2)
All times are GMT -4. The time now is 10:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy