> For the complete documentation index, see [llms.txt](https://turkce-linux.gitbook.io/anasayfa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://turkce-linux.gitbook.io/anasayfa/processes/sinyaller.md).

# Sinyaller

Linux işletim sistemlerinde, bir sinyal bir programa bir şeylerin gerçekleştiğini bildiren bir uyarıdır. Sinyal yazılımsal kesintilerdir ve birçok kullanım alanları vardır:

* **Kullanıcı tarafından gönderilen sinyal**: Kullanıcı, Ctrl-C veya Ctrl-Z gibi özel terminal tuşlarına basarak işlemleri sonlandırabilir, durdurabilir veya askıya alabilir.
* **Donanım sorunları**: Donanım ile ilgili bir sorun oluştuğunda çekirdek (kernel) bu durumu process'e bildirmek için sinyal kullanır.
* **Yazılım sorunları**: Yazılım ile ilgili bir hata oluştuğunda çekirdek durumu process'e sinyal ile bildirir.
* **Process iletişimi**: Sinyal temelde process'lerin birbirleriyle iletişim kurmasının bir yoludur.

### Sinyal İşlemleri

Bir sinyal bir olay tarafından oluşturulduğunda, process'e iletilmek üzere sıraya alınır. Process çalışır durumda olduğunda sinyal teslim edilir. Ancak process'lerin sinyal maskeleri vardır ve bu maskeler sayesinde belirli sinyallerin iletilmesini engelleyebilirler. Bir sinyal iletildiğinde process şunları yapabilir:

* **Sinyalı yok say**: Process sinyali hiç almamış gibi davranabilir.
* **Sinyal yakalayıcı kullanmak**: Process sinyali "yakalayabilir" ve özel bir işleyici rutini çalıştırabilir.
* **Process sonlandırma**: Process normal çıkış sistem çağrısı yerine sonlandırılabilir.
* **Sinyal engelleme**: Process sinyal maskesine bağlı olarak sinyali engelleyebilir.

### Ortak Sinyal Türleri

Her sinyal, sembolik isimlerle birlikte tamsayılarla tanımlanır (örneğin SIGxxx). En yaygın kullanılan bazı sinyaller şunlardır:

* **SIGHUP (HUP) veya 1**: Bağlantı kesilmesi
* **SIGINT (INT) veya 2**: Kesinti
* **SIGKILL (KILL) veya 9**: Sonlandırma
* **SIGSEGV (SEGV) veya 11**: Segmentasyon hatası
* **SIGTERM (TERM) veya 15**: Yazılım sonlandırması
* **SIGSTOP (STOP)**: Durdurma

Sinyal numaraları farklılık gösterebileceğinden, genellikle isimleriyle anılırlar. Bazı sinyaller engellenemez, örneğin SIGKILL (KILL) sinyalidir. Bu sinyal process'i sonlandırır.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://turkce-linux.gitbook.io/anasayfa/processes/sinyaller.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
