sort: destroy spin locks portably
commit9065006ccbe0a94e9536950f389a0cbc3dfb4dda
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Sep 2010 22:44:31 +0000 (20 15:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Sep 2010 22:45:49 +0000 (20 15:45 -0700)
tree45e9dc62c0d641cd0f143cad029850108031a610
parent4727aab1b1964913cb83db65d59ba65c198d9d84
sort: destroy spin locks portably

* src/sort.c (sortlines, sort): Use pthread_spin_destroy when a
spin lock is no longer used.  This isn't needed on GNU/Linux or
Solaris, but POSIX says it may free up resources on some platforms.
src/sort.c