Provided by: manpages-ko-dev_4.21.0-2_all bug

이름

       alarm - 시그널 전달을 위한 알람을 설정한다.

라이브러리

       표준 C 라이브러리 (libc, -lc)

요약

       #include <unistd.h>

       unsigned int alarm(unsigned int seconds);

설명

       alarm()   arranges  for a SIGALRM signal to be delivered to the calling process in seconds
       seconds.

       If seconds is zero, any pending alarm is canceled.

       어떤 경우에도 이전에 설정된 alarm()은 은 취소된다.

반환값

       alarm()은 이전에 설정된 알람이  시그널을  전달할  때까지  남은  시간을  초  단위의  숫자로
       반환하거나, 이전에 설정된 알람이 없다면 0을 반환한다.

표준

       POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.

주의

       alarm()  과  setitimer(2)는  같은  타이머를  공유한다;  한  쪽을 호출하면 다른 쪽을 간섭할
       것이다.

       Alarms created by alarm()  are preserved  across  execve(2)   and  are  not  inherited  by
       children created via fork(2).

       sleep(3)  may be implemented using SIGALRM; mixing calls to alarm() and sleep(3)  is a bad
       idea.

       스케줄링 지연이 임의의 시간 동안 프로세스의 수행을 지연시킬 수도 있다.

추가 참조

       gettimeofday(2),   pause(2),    select(2),    setitimer(2),    sigaction(2),    signal(2),
       timer_create(2), timerfd_create(2), sleep(3), time(7)

번역

       이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 임종균 <hermes44@secsm.org>

       이  번역은  무료  문서입니다.  저작권  조건에  대해서는  GNU General Public License 버전 3
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ 이상을 읽으십시오. 책임이 없습니다.

       이 매뉴얼 페이지의  번역에서  오류를  발견하면  ⟨translation-team-ko@googlegroups.com⟩  로
       이메일을 보내주십시오.