Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
S
scom
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
scom
Commits
6e2d3ecf
Kaydet (Commit)
6e2d3ecf
authored
May 11, 2008
tarafından
Bahadır Kandemir
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle sigint
üst
6a15c957
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
process.c
comar/src/process.c
+6
-1
No files found.
comar/src/process.c
Dosyayı görüntüle @
6e2d3ecf
...
...
@@ -49,6 +49,7 @@ handle_signals(void)
{
struct
sigaction
act
;
struct
sigaction
ign
;
struct
sigaction
dfl
;
act
.
sa_handler
=
handle_sigterm
;
/*! initialize and empty a signal set. Signals are to be blocked while executing handle_sigterm */
...
...
@@ -59,9 +60,13 @@ handle_signals(void)
sigemptyset
(
&
ign
.
sa_mask
);
ign
.
sa_flags
=
0
;
dfl
.
sa_handler
=
SIG_DFL
;
sigemptyset
(
&
dfl
.
sa_mask
);
dfl
.
sa_flags
=
0
;
sigaction
(
SIGTERM
,
&
act
,
NULL
);
sigaction
(
SIGINT
,
&
act
,
NULL
);
sigaction
(
SIGPIPE
,
&
ign
,
NULL
);
sigaction
(
SIGINT
,
&
dfl
,
NULL
);
}
//! Sets process name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment