dCache / nfs4j

Pure Java NFSv3 and NFSv4.2 implementation
Other
240 stars 76 forks source link

make cleanup threads daemons #30

Closed radai-rosenblatt closed 9 years ago

radai-rosenblatt commented 9 years ago

currently the nfs4 session cleanup thread is not a daemon. this prevents proper termination of a jvm running an nfs4 server in certain situations, like the classic:

public static void main (String[] args) {
    OncRpcSvc server = createAndStartServer();
    System.in.read(); //hit any key to shut down
    server.stop();
    //main will exit, but jvm will stay alive because of the nfs4 session cleanup thread
}
kofemann commented 9 years ago

thanks!