A textile machine including at least one winding unit which performs a yarn winding process of forming at least one package by winding a yarn supplied from a yarn supplying unit onto a take up tube (Bm), the at least one winding unit including: a yarn quality measuring device which includes a yarn quality measurement unit configured to detect, by monitoring a running yarn, an unacceptable defect (Yb) which needs to be removed and an acceptable defect (Yc) which does not need to be removed and a cutting unit configured to cut the yarn when the unacceptable defect (Yb) is detected; a determination unit which is configured to determine whether the at least one package is a good product in which the amount of acceptable defects (Yc) is not larger than a predetermined reference value or an acceptable product in which the amount of acceptable (Yc) defects is larger than the reference value, based on data of the acceptable defect (Yc); and a unit controller, characterized in that: when it is determined by the determination unit that the at least one package is the acceptable product, the unit controller causes the at least one winding unit to perform an operation different from an operation performed when the at least one package is the good product, and wherein, while the at least one package is being formed by the at least one winding unit, the determination unit increments the amount of acceptable defects (Yc) detected by the yarn quality measuring device, and determines that the at least one package is the acceptable product when the total amount of acceptable defects (Yc) in the package exceeds the reference value. a yarn quality measuring device which includes a yarn quality measurement unit configured to detect, by monitoring a running yarn, an unacceptable defect (Yb) which needs to be removed and an acceptable defect (Yc) which does not need to be removed and a cutting unit configured to cut the yarn when the unacceptable defect (Yb) is detected; a determination unit which is configured to determine whether the at least one package is a good product in which the amount of acceptable defects (Yc) is not larger than a predetermined reference value or an acceptable product in which the amount of acceptable (Yc) defects is larger than the reference value, based on data of the acceptable defect (Yc); and a unit controller, characterized in that: when it is determined by the determination unit that the at least one package is the acceptable product, the unit controller causes the at least one winding unit to perform an operation different from an operation performed when the at least one package is the good product, and wherein, while the at least one package is being formed by the at least one winding unit, the determination unit increments the amount of acceptable defects (Yc) detected by the yarn quality measuring device, and determines that the at least one package is the acceptable product when the total amount of acceptable defects (Yc) in the package exceeds the reference value. when it is determined by the determination unit that the at least one package is the acceptable product, the unit controller causes the at least one winding unit to perform an operation different from an operation performed when the at least one package is the good product, and wherein, while the at least one package is being formed by the at least one winding unit, the determination unit increments the amount of acceptable defects (Yc) detected by the yarn quality measuring device, and determines that the at least one package is the acceptable product when the total amount of acceptable defects (Yc) in the package exceeds the reference value.