dwait for linux