tsaikd / gogstash

Logstash like, written in golang
MIT License
644 stars 106 forks source link

Ctrl+C does not kill worker processes #211

Closed Mizaro closed 1 year ago

Mizaro commented 1 year ago

While trying the project on my local machine. I did the following:

go run .
ps aux | grep gog

And noticed that the worker processes are still alive.

user1    5896 21.6  0.3 1628392 27444 pts/6   Sl   11:00   0:01 /tmp/go-build3520306496/b001/exe/gogstash worker
user1    5897 21.0  0.3 1628136 31328 pts/6   Sl   11:00   0:01 /tmp/go-build3520306496/b001/exe/gogstash worker

My config is config.yaml is:

chsize: 1000
worker: 2
event:
  sort_map_keys: false
  remove_field: ['@metadata']

input:
  - type: lorem

output:
  - type: stdout
    codec: json
Mizaro commented 1 year ago

Closing because it is solved by #212