seaweedfs / seaweedfs-csi-driver

SeaweedFS CSI Driver https://github.com/seaweedfs/seaweedfs
Apache License 2.0
211 stars 50 forks source link

Fix error to avoid zombie processes #69

Closed garenchan closed 2 years ago

garenchan commented 2 years ago

What problem are we solving?

Some zombie processes occur after unmounting volumes.

/ # ps -ef
PID   USER     TIME  COMMAND
    1 root      0:00 /seaweedfs-csi-driver --endpoint=unix:///csi/csi.sock --filer=192.168.1.100:8888 --nodeid=152-worker-0b2
   11 root      0:00 [weed]
   17 root      0:00 [weed]
   22 root      0:00 /bin/sh

How are we solving the problem?

We should wait for weed mount child process to exit.

Checks